examples-automation, run samples publish on js#13512
Merged
weidongxu-microsoft merged 1 commit intoAzure:mainfrom Mar 2, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds automation to generate JavaScript SDK samples by running pnpm install and npx dev-tool samples publish commands during the examples automation process, as described in the linked GitHub issue.
Changes:
- Added new
tools.pymodule withpublish_samplesfunction to execute pnpm and npx commands - Added
tools_test.pywith a skipped integration test for the new functionality - Integrated
publish_samplescall into the main automation workflow before processing the generated samples
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| tools/azure-rest-api-specs-examples-automation/js/tools.py | Implements subprocess wrapper and publish_samples function to run pnpm install and npx dev-tool samples publish commands |
| tools/azure-rest-api-specs-examples-automation/js/tools_test.py | Adds a skipped integration test for the publish_samples function |
| tools/azure-rest-api-specs-examples-automation/js/main.py | Integrates the publish_samples call into the main workflow to generate samples before processing them |
MaryGao
approved these changes
Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
link Azure/azure-sdk-for-js#36757 (comment)
For JS, automation will call
pnpm installthennpx dev-tool samples publishto generate the JS samples in runtime.